
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" template="../template_back.xhtml">
  
  <ui:define name="content">
  
    <h:form id="contentForm">
      <h:panelGrid columns="3">
      
        <h:outputText value="First Name auteur" />
        <h:inputText id="title" value="#{authorController.currentAuthor.firstName}" required="true" />
        <h:message for="title"></h:message>

		<h:outputText value="Last Name auteur" />
        <h:inputText id="title2" value="#{authorController.currentAuthor.lastName}" required="true" />
        <h:message for="title"></h:message>
        		
      </h:panelGrid>
      <p:commandButton action="#{authorController.add}" value="Ajouter auteur"/>
      <h:messages globalOnly="true"/>

 <p:dialog id="dialog" header="Selected Values" modal="true" showEffect="fade" hideEffect="fade" widgetVar="dlg">  
        <p:outputPanel id="display">  
            <p:dataList id="selectedPlayers" value="#{bookController.tempAuthor}" var="p">  
                #{p.firstName}  
            </p:dataList>  
        </p:outputPanel>  
    </p:dialog>  
       
       
    </h:form>  
  
  </ui:define>
  
</ui:composition>
